"""
@Time ： 2021/11/11 16:29
@Auth ： ChenZhangKun
"""
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By

webDriver = webdriver.Chrome(r'D:\sofwares\chrom\chromedriver.exe')
# 最大等待十秒钟
webDriver.implicitly_wait(10)

webDriver.get("http://www.baidu.com")

ac = ActionChains(webDriver)

ac.move_to_element(
    webDriver.find_element(By.CSS_SELECTOR, "[name='tj_briicon']")

).perform()
